<?php
/**
 * 管理基类
 * @copyright reginx.com
 * $Id: admin.mod.php 61 2012-11-18 16:14:40Z reginx.com $
 */
class admin_mod extends mod {
    
    /**
     * 是否为ajax请求
     *
     * @var unknown_type
     */
    public $isajax = false;
    
    /**
     * 当前登录的用户
     *
     * @var unknown_type
     */
    public $login  = array();
    
    /**
     * 构造函数
     *
     * @param unknown_type $param
     */
    function __construct($param){
        parent::__construct($param);
        $this->opensess($param['sess']);
        $this->isajax = $this->get('isajax','R') === null ? false : true;
        $this->login = $this->sobj->get('login');
        if(!$this->login){
            $this->forward('login','index' , $this->conf);
        }
        $this->assign('login' , $this->login);
    }
}
?>